<extend name='Index:index'/>
<block name='right'>
<div class="rightBody">

	<table class="table table-bordered table-hover click-toggle">
		<tr class="titleTr warning">
			<th></th>
			<th>分类名称</th>
			<th>分类标题</th>
			<th>分类排序</th>
			<th>是否显示</th>
			<th>操作</th>
		</tr>
		<volist	name='rows' id='row'> 
		<if condition="$row['pid'] eq 0" >
		<tr class="titleTr  pid_<{$row['pid']}>" cid="<{$row['cid']}>" >
		<else/>
		<tr class="pid_<{$row['pid']}>" cid="<{$row['cid']}>" >
		</if>
			<td><a href="#" class="aunfold btn btn-default btn-info">+</a></td>
			<td><{$row['cname']}></td>
			<td><{$row['title']}></td>
			<td><{$row['sort']}></td>
			<td><{$row['display']}></td>
			<td><a href="<{:U('Category/edit','','')}>/cid/<{$row['cid']}>" class="btn btn-sm btn-primary">编辑</a> <a href="<{:U('Category/delete','','')}>/cid/<{$row['cid']}>" class="btn btn-sm btn-danger">删除</a></td>
		</tr>
		</volist>
	</table>
</div>

</block>